﻿@model LanDBom.Models.libray

@{
    ViewBag.Title = "Edit";
    Layout = "~/Views/Shared/_Genertals.cshtml";
}
<h2>工艺修改页面</h2>

@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()
    <fieldset class="boun">
        <table class="form-horizontal table-app" cellpadding="5">
            @Html.ValidationSummary(true, "", new { @class = "text-danger" })
            @Html.HiddenFor(model => model.LB_ID)
            <tr class="form-group">
                <td>
                    @Html.Label("工艺编码", htmlAttributes: new { @class = "control-label " })
                </td>
                <td>
                    @Html.EditorFor(model => model.LB_bai, new { htmlAttributes = new { @class = "form-control" } })
                    @Html.ValidationMessageFor(model => model.LB_bai, "", new { @class = "text-danger" })
                </td>
                <td> @Html.Label("工艺名称", htmlAttributes: new { @class = "control-label " })</td>
                <td>
                    @Html.EditorFor(model => model.LB_fne, new { htmlAttributes = new { @class = "form-control" } })
                    @Html.ValidationMessageFor(model => model.LB_fne, "", new { @class = "text-danger" })
                </td>
            </tr>
            <tr class="form-group">
                <td> @Html.Label("工艺分类", htmlAttributes: new { @class = "control-label " })</td>
                <td>
                    @Html.DropDownList("ST_ID", null, htmlAttributes: new { @class = "form-control" })
                    @Html.ValidationMessageFor(model => model.ST_ID, "", new { @class = "text-danger" })
                </td>
                <td> @Html.Label("计量单位", htmlAttributes: new { @class = "control-label " })</td>
                <td>
                    <select id="LB_dan" name="LB_dan" class="form-control"  >
                        <option>无</option>
                        <option>模</option>
                        <option>/1000张/色</option>
                        <option>平方</option>
                        <option>米</option>
                        <option>KG</option>
                    </select>
                    @Html.ValidationMessageFor(model => model.LB_dan, "", new { @class = "text-danger" })
                </td>
            </tr>
            <tr class="form-group">
                <td> @Html.Label("工艺单价", htmlAttributes: new { @class = "control-label " })</td>
                <td>
                    @Html.EditorFor(model => model.LB_jia, new { htmlAttributes = new { @class = "form-control" } })
                    @Html.ValidationMessageFor(model => model.LB_jia, "", new { @class = "text-danger" })
                </td>
                <td> @Html.Label("工艺损耗", htmlAttributes: new { @class = "control-label " })</td>
                <td>
                    @Html.EditorFor(model => model.LB_shun, new { htmlAttributes = new { @class = "form-control" } })
                    @Html.ValidationMessageFor(model => model.LB_shun, "", new { @class = "text-danger" })
                </td>
            </tr>
            <tr class="form-group">
                <td><input type="submit" value="修改" class="btn-sm btn-default" /></td>
                <td> <button class="btn-sm btn-default">@Html.ActionLink("返回列表", "AddGong", new { Controller = "Material", Action = "AddGong" }, new { @style = "color:#000" })</button></td>
            </tr>
        </table>
    </fieldset>
}

@section scripts{
    <script src="~/Scripts/jquery-3.4.1.min.js"></script>
    <script src="~/Scripts/bootstrap.min.js"></script>
    <script>
        $(function () {
            $("#LB_bai").attr("readonly", "readonly");
            $("#LB_fne").attr("readonly", "readonly");

            //提交

        })
    </script>
}
